package com.ssh.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.ssh.service.HelloService;

@Configuration//用来代替beans.xml
public class MyConfig {
	
	/**
	 * 用来代替beans.xml中的<bean></bean>
	 * @return
	 */
	@Bean
	public HelloService helloService() {
		return new HelloService();
	}

}
